package com.yl.users.common

import com.yl.users.mapper.CreateIdMapper
import org.springframework.web.context.ContextLoader

interface NeedGerId {
	val idName :String
}

private val mapper : CreateIdMapper by lazy {
	ContextLoader.getCurrentWebApplicationContext().getBean("CreateIdMapper") as CreateIdMapper
}


fun getId(idName:String):Long{
	return mapper.getId(idName)
}

